﻿//-----------------------------------------------------------------------
// <copyright file="Movie.cs" company="SoSoft">
//     Copyright (c) SoSoft . All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

// 实例非常简单，这是一个影片出租店的程序，计算每一位顾客的消费金额并打印报表（Statement）。操作者告诉程序：
// 1. 顾客租了哪些影片
// 2. 租期多长
// 3. 程序便根据租赁时间和影片类型算出费用
// 影片分为三类：普通片，儿童片和新片
// 除了计算费用，还要为常客计算点数，点数随着“租片种类是否为新片”而有不同

namespace FirstSample
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// movie class, this is a data class
    /// </summary>
    public class Movie
    {
        /// <summary>
        /// child Rens
        /// </summary>
        public const int ChildMovie = 2;

        /// <summary>
        /// Regular score
        /// </summary>
        public const int Regular = 0;

        /// <summary>
        /// new film score
        /// </summary>
        public const int NewRelease = 1;

        /// <summary>
        /// Initializes a new instance of the Movie class.
        /// </summary>
        /// <param name="title">movie title</param>
        /// <param name="priceCode">price code</param>
        public Movie(string title, int priceCode)
        {
            this.Title = title;
            this.PriceCode = priceCode;
        }
        
        /// <summary>
        /// Gets or sets movie title
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets movie price code
        /// </summary>
        public int PriceCode { get; set; }
    }
}
